package cn.tedu.bonfire.front.payment.config;

import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
@Data
public class AliPayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "9021000133613576"; // fqq

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥  填上你的私钥
     *  第一行为可用状态
     */
    private String privateKey ="MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCCEEF1UqLDUQSZusyBStsrHp2bMbM1Qn88AH2ylGwOSExo+cEXDTb/Lc8VvhVSb4d+OFCkv8J3Hn3HVj/U9SbK+qyguv1ZejRrUCY/pQpBr24fLRe2vJxPPIpt6GzLEgOx5twKaox/Kq6ISCwF+zwYPfVk8G5Z+WIx24P1wRwZpo1vfVtxu1k1yw+YdrNmG7288Bmrgyb8Qsc3mglFqeRQD3ZkmWJSnE4Hxvc811vvyhgo2mIC88Vo4hucqgSD5BbuwcRxlKHKrScoNyiugj50fkFa/ch5nYv50iYt1jp8AS8ewJQhF8OHO/wfFYzEgbiJBKGdbO0l71sCri9x/PkHAgMBAAECggEACBrjOWBw7CL8WmgdnmD/z2wU/jrWpBcEvsR5EMvW//zZZiFKOxmDt9su8Hfr9DsnAmKYA+w/PhUUWXuydp7gT/3XDB0a9Jx878MK3yR1wyoffqnctHKEexuWtMqrHOx+dnOgerWxE6uhPLTiqWzCjfAufp/NAKZdzCWVz5a9HYwAvkDzVLoV6ZAVdqlcn9VaNGx3q5tva+JKHAf8VoqGjHeTmjMbhHQcWWI8nlxzMqTj3P1ohWS6qx8xKvNVORkoP8gs5T2KTuMAvT7g62pffCBsWwTBRVCV4zlATGPJWg0BU50mgYrVzqj4YQTad55eaENRVFvBbGAHMStIY7uMIQKBgQC3VeHMk3i9wqucPSS6p5ssXb7FZQ6ocg6fbLoH5+gXYJ1IRtbEgok+IGmnyYPdj81KCNC+fjkKACOqdb/jKaKshPJAoTkXh8kO8vl1fkzzTcYXohjlU16mflL8aAr5B81D1o0FJI19TO8kIGIF9eUfH0HVTNTJ0+qRuG7nQTRW+wKBgQC1nSMbLKa8UWY4AuJwhTX40FtyW9LU1dF95lMRwZ7hTte5KaAofxxJ+wKrbr72CDmTlg3OeB1EUc95Srz8t+GM9LDiAFiPP8zMuKZfDGXBFy36Xk8uPXKZBTQ5Nx7kUPPFIa8JrXmEEME+q+GxpzGoyzBE8D6DmCImPM2Z/eN4ZQKBgAsYOWfl7MKfCz+TO6vIBM30hlzvtqle7Z+cNs3PrO3tPNdo4gpWU/PchkhPG5nG4AeA7RD6Fn2ScJYaNhiLJnsGOJrMpuXTo8kxzwLbN9DpfflkJ9mI6AtvTZpUuYVEgZl/XF1ZTu6sPzSSeRwfO1Rc0eEUmzPzjRhwbtWzznUNAoGAKq0KGtCbPZVDF9ZVr2seC6GqW20IVcsItzTwQDPnSbplJrWJVPrJgvjg37feV6IHJY8VH3dKKUuwHSha0GfFMIIvLmw2YzLyxQh+z8byAjWYMEUJBiyaSSrX4rn5IF2FasVHhFanP0lQn5F0L3LCUI+ugASULAgLvkB7b7whP6ECgYB1h7i/3uOg1z60f3b2Iz4R+azcUCTsxRrNuemM+MK0ClYuzDH6yg4msG4SCU2vn72BmJdl7IGmdlkDyY/oPRKGPgndY8kSoIBT+dmkrxBKBEWNNsFhvEOybVjddgngOIxRHahJCXjKjx42J+5jI9I2NEkVBr0B+NQ4mSI/abP+ZQ==";
    /**
     * private String privateKey =
     * 支付宝公钥,  填上你的公钥
     */
    private String publicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn73kXKju02RcuF2vabVAs9+FKAK4HXDzPAvwHskJOnJgzdVnAT1mVJBb5LWhPg8oG4pGuzXyISLSwEL7ZXiATTv/pIF0oI3INkpwJ/7g00V8fN1oayjtHEf1EZPgTEQP1vsT8YRVyoqCjCGq7aJ13T9CsJUxFzg7EXFnVNZ31EXa5y+Oa92sdE8qYVTlJhuv6kuPZgBL34ntVAgqrDTk2jCV6PA793qWQhWCYJUoPrPm4U+LuJxqhwOeKlO2SjS7tRxQP70K066SkO6XgM4QIyMIQfOkvbx9El4f5+IjI+dIDTXbSjqtI4vNt9nX5ykJgIcvpmGecsKSslkd3YgESwIDAQAB";

    /**
     * TODO 有页面之后应该要改
     * 服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = " http://123.60.129.240:49283/alipay/returnUrl";

    /**
     * TODO 有页面之后应该要改
     * 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String returnUrl = "http://123.60.129.240:49283/alipay/returnUrl";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "UTF-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
}
